<%@page contentType="text/html;charset=utf-8" pageEncoding="UTF-8"%>
<%@taglib prefix="t" tagdir="/WEB-INF/tags"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<t:template>
	<jsp:attribute name="pagetitle">
      Új hirdetés feltöltése
    </jsp:attribute>
	<jsp:body>
		<form:form method="post" class="signin form-horizontal">
		
			<div class="control-group">
			    <label class="control-label" for="name">Megnevezés:</label>
			    <div class="controls">
			      <input type="text" id="name" name="name"
						placeholder="Megnevezés">
			    </div>
			</div>
			
			<div class="control-group">
			    <label class="control-label" for="categoryId">Kategória:</label>
			    <div class="controls">
			    	<select id="categoryId" name="categoryId" data-size="10">
			    		${categoryOptions }
			    	</select>
			    </div>
			</div>
			
			<div class="control-group">
			    <label class="control-label" for="description">Rövid leírás:</label>
			    <div class="controls">
			      <textarea rows="10" cols="50" name="description"
						id="description"></textarea>
			    </div>
			</div>
			
			<div class="control-group">
			    <label class="control-label" for="price">Ár:</label>
			    <div class="controls">
			       <input type="number" id="price" name="price">
			    </div>
			</div>
	
			<div class="control-group">
    			<div class="controls btn-group">
					<input type="submit" value="Létrehozás" />
				</div>
			</div>
		</form:form>
    </jsp:body>
</t:template>